package com.superjson.showpro.base.servlet;

import org.springframework.web.servlet.DispatcherServlet;

import java.sql.DriverManager;

/**
 * Created By zby on 12:39 2019/6/27
 */
public class OverrideDispatcherServlet extends DispatcherServlet {

    @Override
    public void destroy() {
        super.destroy();
        try {
            DriverManager.deregisterDriver(DriverManager.getDrivers().nextElement());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
